import csdn_spider
class Spider(csdn_spider.Spider):
    allowed_domains = ['']
# 应该有去重功能
    def start_request(self):
        yield csdn_spider.Request(
            url = 'http://www.baidu.com',
            data = None,
            headers = {},
            callback = 'parse1',
        )

    def parse1(self,response):
        yield csdn_spider.Request(
            url='http://taobao.com',
            headers={},
            data=None,
            callback='parse1'
        )
        yield {
            'a':'n',
        }
        print('得到响应',response)
        print(response.read())
